package com.ea.admin.pojo.param.datasource;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 查询数据源
 * @author luxl
 * @date 2025-07-07
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GetDataSourceListParam {
    @ApiModelProperty(value = "数据源名称")
    private String sourceName;

    @ApiModelProperty(value = "数据源IP地址")
    private String sourceIp;

    @ApiModelProperty(value = "页码", required = true)
    @NotNull(message = "页码不能为空")
    private Integer page;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "每页条数不能为空")
    private Integer pageSize;
}